<script setup lang="ts">
defineProps<{
  title?: string
}>()

</script>
<template>
  <div class="block-card" @click="$emit('click')">
    <div class="block-title" v-if="title">{{ title }}</div>
    <slot />
  </div>
</template>
<style lang="scss" scoped>
.block-card {
  margin: var(--border-space);
  border-radius: var(--size-border-radius);
  padding: 20px;
  border: 1px solid #e3e3e3;
  background: #fff;
  .block-title {
    font-weight: 500;
    font-size: 35px;
  }
}
</style>